﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Ice;

namespace IceClientConsole
{
    class Program
    {        
        static void Main(string[] args)
        {
            Ice.Communicator ic;
            ic = Ice.Util.initialize();
            Ice.ObjectPrx obj = ic.stringToProxy("hello:tcp -p 10000");
            Demo.HelloPrx hello = Demo.HelloPrxHelper.checkedCast(obj);
            if (hello == null)
                throw new ApplicationException("Invalid Proxy");
            hello.sayHello(1);

            if (ic != null)
            {
                ic.destroy();
            }
        }
    }
}
